home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / dom / nsIDOMCSSPageRule.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  3KB  |  110 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIDOMCSSPageRule.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIDOMCSSPageRule_h__
  6. #define __gen_nsIDOMCSSPageRule_h__
  7.  
  8.  
  9. #ifndef __gen_nsIDOMCSSRule_h__
  10. #include "nsIDOMCSSRule.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17.  
  18. /* starting interface:    nsIDOMCSSPageRule */
  19. #define NS_IDOMCSSPAGERULE_IID_STR "a6cf90bd-15b3-11d2-932e-00805f8add32"
  20.  
  21. #define NS_IDOMCSSPAGERULE_IID \
  22.   {0xa6cf90bd, 0x15b3, 0x11d2, \
  23.     { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}
  24.  
  25. class NS_NO_VTABLE nsIDOMCSSPageRule : public nsIDOMCSSRule {
  26.  public: 
  27.  
  28.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMCSSPAGERULE_IID)
  29.  
  30.   /* attribute DOMString selectorText; */
  31.   NS_IMETHOD GetSelectorText(nsAString & aSelectorText) = 0;
  32.   NS_IMETHOD SetSelectorText(const nsAString & aSelectorText) = 0;
  33.  
  34.   /* readonly attribute nsIDOMCSSStyleDeclaration style; */
  35.   NS_IMETHOD GetStyle(nsIDOMCSSStyleDeclaration * *aStyle) = 0;
  36.  
  37. };
  38.  
  39. /* Use this macro when declaring classes that implement this interface. */
  40. #define NS_DECL_NSIDOMCSSPAGERULE \
  41.   NS_IMETHOD GetSelectorText(nsAString & aSelectorText); \
  42.   NS_IMETHOD SetSelectorText(const nsAString & aSelectorText); \
  43.   NS_IMETHOD GetStyle(nsIDOMCSSStyleDeclaration * *aStyle); 
  44.  
  45. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  46. #define NS_FORWARD_NSIDOMCSSPAGERULE(_to) \
  47.   NS_IMETHOD GetSelectorText(nsAString & aSelectorText) { return _to GetSelectorText(aSelectorText); } \
  48.   NS_IMETHOD SetSelectorText(const nsAString & aSelectorText) { return _to SetSelectorText(aSelectorText); } \
  49.   NS_IMETHOD GetStyle(nsIDOMCSSStyleDeclaration * *aStyle) { return _to GetStyle(aStyle); } 
  50.  
  51. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  52. #define NS_FORWARD_SAFE_NSIDOMCSSPAGERULE(_to) \
  53.   NS_IMETHOD GetSelectorText(nsAString & aSelectorText) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelectorText(aSelectorText); } \
  54.   NS_IMETHOD SetSelectorText(const nsAString & aSelectorText) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSelectorText(aSelectorText); } \
  55.   NS_IMETHOD GetStyle(nsIDOMCSSStyleDeclaration * *aStyle) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStyle(aStyle); } 
  56.  
  57. #if 0
  58. /* Use the code below as a template for the implementation class for this interface. */
  59.  
  60. /* Header file */
  61. class nsDOMCSSPageRule : public nsIDOMCSSPageRule
  62. {
  63. public:
  64.   NS_DECL_ISUPPORTS
  65.   NS_DECL_NSIDOMCSSPAGERULE
  66.  
  67.   nsDOMCSSPageRule();
  68.  
  69. private:
  70.   ~nsDOMCSSPageRule();
  71.  
  72. protected:
  73.   /* additional members */
  74. };
  75.  
  76. /* Implementation file */
  77. NS_IMPL_ISUPPORTS1(nsDOMCSSPageRule, nsIDOMCSSPageRule)
  78.  
  79. nsDOMCSSPageRule::nsDOMCSSPageRule()
  80. {
  81.   /* member initializers and constructor code */
  82. }
  83.  
  84. nsDOMCSSPageRule::~nsDOMCSSPageRule()
  85. {
  86.   /* destructor code */
  87. }
  88.  
  89. /* attribute DOMString selectorText; */
  90. NS_IMETHODIMP nsDOMCSSPageRule::GetSelectorText(nsAString & aSelectorText)
  91. {
  92.     return NS_ERROR_NOT_IMPLEMENTED;
  93. }
  94. NS_IMETHODIMP nsDOMCSSPageRule::SetSelectorText(const nsAString & aSelectorText)
  95. {
  96.     return NS_ERROR_NOT_IMPLEMENTED;
  97. }
  98.  
  99. /* readonly attribute nsIDOMCSSStyleDeclaration style; */
  100. NS_IMETHODIMP nsDOMCSSPageRule::GetStyle(nsIDOMCSSStyleDeclaration * *aStyle)
  101. {
  102.     return NS_ERROR_NOT_IMPLEMENTED;
  103. }
  104.  
  105. /* End of implementation class template. */
  106. #endif
  107.  
  108.  
  109. #endif /* __gen_nsIDOMCSSPageRule_h__ */
  110.